﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="pin.aspx.cs" Inherits="InventoryTracker_pin" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">


<asp:GridView ID="invGridView" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="Number" DataSourceID="pin" ForeColor="#333333" 
        GridLines="None">
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <Columns>
        <asp:CommandField ShowSelectButton="True" />
        <asp:BoundField DataField="Number" HeaderText="Number" ReadOnly="True" 
            SortExpression="Number" />
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        <asp:BoundField DataField="Description" HeaderText="Description" 
            SortExpression="Description" />
        <asp:BoundField DataField="Rate" HeaderText="Rate" SortExpression="Rate" />
        <asp:BoundField DataField="Tax" HeaderText="Tax" SortExpression="Tax" />
    </Columns>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#999999" />
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="pin" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [pinv]"></asp:SqlDataSource>
<asp:Button ID="UpdateButton" runat="server" Text="Update" 
        onclick="UpdateButton_Click"></asp:Button>


</asp:Content>

